Click to See Complete Forum and Search --> : Help!!


lilaznclucle
09-18-2003, 05:54 PM
I have a questions....Um you know the script
javscript:alert('hi') this will create a pop up saying hi...and if i type it into the address bar on any website it will say hi...How can i make this automated so i create a link to another website and it will say hi not from my page but from the website sort of like typing it in for u... I am sorry im very bad at explaning things. so basically im trying to include some javscript in the url address is there any way that i can do that?

AdamBrill
09-18-2003, 06:46 PM
I don't believe there is a way to run JavaScript on the page that is loading. The only way would be to open it in a frame, and even doing that would be a work-around to make it do it...

lilaznclucle
09-23-2003, 07:25 AM
<script>
var popup=window.open('http://hi.com');
popup.location="javscript:alert('hi');
<script>

^something similar to the above ?

pyro
09-23-2003, 07:53 AM
Once the page is off your domain, you no longer have control over it.

AdamBrill
09-23-2003, 08:16 AM
Originally posted by lilaznclucle
<script>
var popup=window.open('http://hi.com');
popup.location="javscript:alert('hi');
<script>

^something similar to the above ? Did you try that?? It didn't seem to work very well for me, so I'd hardly call that the solution. ;)