Sunday, December 6, 2009

What does javascript void 1 mean.?

started happen when I tried to oper an XM radio site through IE. Up until just recently I was able to open the XM radio sites through IE. I can access the XM radio sites if I log into AOL.



What does javascript void 1 mean.?tickets



javascript:void(0) can be broken down a little



javascript is the protocol sorta like HTTP, FTP, etc.



void() is the name of the function called via javascript



0 is the paramater passed to the void function



void, as a function, does absolutely nothing.



The function void could be defined this way:



function void() { return null; }



It doesn't matter what the parameters are because nothing happens. void(1) does the same as void(0) or void(0,2,4,6,8).



The function call to void(0) is just a placeholder for a real link because



%26lt;a href=""%26gt;..%26lt;/a%26gt; is not valid code. Some prefer 'javascript:void(0)' in the href slot over '#' as a place holder. It is a matter of preference.



What does javascript void 1 mean.?ballet opera theater



It mean do nothing



When you click a link, it will do nothing because it use href="javascript:void(0)"



Example:



%26lt;a href="javascript:void(0)" onclick="form1.submit()"%26gt;Submit Link%26lt;/a%26gt;



This link is not a real link(link to website) but it will run script!
often used as a placeholder for someother function.



either they override it in the script or they didn't finish writing it!



If you posted an URL where you had the problem, you might get more help!

No comments:

Post a Comment

 
adware remover