link created by document.wite() doesnt open

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Windows XP home dition and latest Internet explorer.
I have program which creates a webpage and uses following code.
var x = "<A href= C:/kr_homepages/xyz.html > All Related links </A>";
document.write(x);

This creates the new webpage with links. But they donot open.
It worked in Windows 98 and Internet explorer 5.0

thanks
 
Hi sk,
Try using the file protocol. So your href property becomes
file://C:\kr_homepages\xyz.html

Regards.
 
Rob ^_^ said:
Hi sk,
Try using the file protocol. So your href property becomes
file://C:\kr_homepages\xyz.html

Regards.

hello,

It doesnot work.
If I write the following in notepad and save as .html and it works fine.
<A href= C:/kr_homepages/xyz.html > All Related links </A>

If I try using this stuff either way using document.write() , it doesnt work.

thanks
 

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

Back
Top