HTTrack Website Copier
Free software offline browser - FORUM
Subject: javascript links
Author: Laszlo
Date: 05/11/2011 12:28
 
Links like document.location = "url" and window.open("url", ...); don't seem to
work like stated in FAQ.
What would be your suggested workaround? I have created one which declares
links in a hidden area - see below. Maybe there is a better way to do it.
Thanks.

function loadPrint(printurl) {
 window.open(printurl, 'printWindow', '');
}
[div id="links" style="display: none"]
  [A HREF="url" name="print_" id="print_" /]
[/div]

[A
onClick="javascript:loadPrint(document.getElementById('print_').href);return;"
/a]
 
Reply


All articles

Subject Author Date
javascript links 05/11/2011 12:28
Re: javascript links 05/11/2011 14:17
Re: javascript links 05/11/2011 21:30
Re: javascript links 05/11/2011 22:04
Re: javascript links 11/24/2013 10:55




2

Created with FORUM 2.0.11