...

View Full Version : Help with Internet Shortcut (.URL) that executes Javascript after page is loaded



pbm
07-02-2012, 04:17 AM
I am trying to create an .url file that goes to a website and executes a javascript after the page is loaded.
This is the part of the .url where it goes to the website:


[InternetShortcut]
URL=javascript:window.location.href='http://www.website.com/1/2'

And this is the part that needs to be executed when the page is finished loading (right now I'm doing this manually in the browsers' address bar every time I go to this website):


javascript:showPlayer('liveStr','tsb_1','10','videoplayer');

How should I integrate this with the first part?
I've tried the following:


[InternetShortcut]
URL=javascript:window.location.href='http://www.website.com/1/2';window.onload=showPlayer('liveStr','tsb_1','10','videoplayer');

But that didn't worked.

Philip M
07-02-2012, 08:35 AM
You can't issue a command for another page, that is the page which you are redirecting to.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum