By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,701 Members | 1,978 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,701 IT Pros & Developers. It's quick & easy.

Access javascript through url

P: 7
hi, how can i access a javascript function from a webpage through the url?
Jan 22 '08 #1
Share this Question
Share on Google+
5 Replies

P: 7
hello, is there anyone who have done this b4??
Jan 22 '08 #2

Expert Mod 5K+
P: 5,327
hi ...

could you explain that in more detail ... what do you want to achieve? is it your own page or from another domain?

kind regards
Jan 22 '08 #3

P: 7
hi, is from another domain. e.g: has a javascript function call makealert(); so how do i access this function from the url instead. i understand you can key in javascript:makealert().. but if we access the page for the first time, how can i input it into the url n run the script?
Jan 23 '08 #4

Expert Mod 5K+
P: 5,327
simple answer: you can't ... since the page has to be loaded first so that the javascript is evaled in it and after that it is ready to use ...
Jan 23 '08 #5

P: 7
so is there a way to load the url first then the javascript? all done in the url query? or any other method?
Jan 23 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.