Can you tell me how the java script works when i write the script at the address bar of any web page. How it effect the execution of that perticular web page at which i write the script at the address bar ?
How to javascript at the address bar of an webpage page
Collapse
X
-
Tags: None
-
could you explain a bit more what you mean?
when you type:
it just shows an alert ... nothing more ... and doesn't affect the page at all ... when you type:Code:javascript:alert('foo');
then the body will be hidden and so it affects the page. so what you type and want to affect ... will be affected.Code:javascript:document.getElementsByTagName('body')[0].style.display='none';
kind regards -
if i write this script how its work.......could you explain a bit more what you mean?
when you type:
it just shows an alert ... nothing more ... and doesn't affect the page at all ... when you type:Code:javascript:alert('foo');
then the body will be hidden and so it affects the page. so what you type and want to affect ... will be affected.Code:javascript:document.getElementsByTagName('body')[0].style.display='none';
kind regards
what it impact on the webpage .Code:javascript:alert("Wait for few seconds for pic`s to load......"); nb= document.all[0].innerHTML.match(/[0-9]*.jpg\)/g);nb=parseInt(nb); document.body.innerHTML="<center><span style="'font-size:100'"><b>anag script<br /></b>SCRIPT BYAnag Johari</a></span>"; for(i=1;i<=100;i++){document.body.innerHTML+='<img src="http://img3.orkut.com/images/milieu/'+i+'/0/'+nb+'.jpg" /><br /><br /><br /><br />';};void(0)
i type this at the address bar of an page.
Thank youComment
Comment