loading html pages dynamically through javascript

I

isha.mackker

How can html files be loaded dynamically through javascript? Can and
how a link , which may be in a third party web page, or a bookmark
button can be programmed in javascript to load another web page?
any reply will be highly appritiated
Thanks and Regards,
Isha.
 
R

RobG

How can html files be loaded dynamically through javascript? Can and

<input type="button" value="Go to Google..."
onclick="location.href='http://www.google.com';">

but isn't that what A elements are for? You can use the target
attribute to load the document in a frame or iframe - no script required.

how a link , which may be in a third party web page, or a bookmark
button can be programmed in javascript to load another web page?

Scripts can't, with default security settings, tamper with pages from
another domain.

any reply will be highly appritiated

*Any* reply?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top