"crjunk" <cr****@earthlink.net> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
Should I expect some of my users to not be able to view a report that I
am launching in a new web browser if they have any popup blocking tool
bars or other software installed on their computer?
<input type="button" value="View MPR For This Location"
onClick="javascript:popUp(''http://MyServer/MPR_Report/ViewReport.aspx?fn=12
345'')">
Thanks,
CR Junk
Why did you use two apostrophes instead of just one in the function call?
How about just setting "location.href="?
Below are two variations of your approach.
Variation #1: "javascript
:" is not required.
Variation #2: uses "location.href=".
<html>
<head>
<title>nopopup.htm</title>
<script type="text/javascript">
function popUp(url) {
alert(url);
}
</script>
</head>
<body>
<form action="" method="get">
<input type="button" value="View MPR For This Location"
onClick="javascript
:popUp('http://MyServer/MPR_Report/ViewReport.aspx?fn=123
45')">
<br>
<input type="button" value="View MPR For This Location"
onClick="popUp('http://MyServer/MPR_Report/ViewReport.aspx?fn=12345')">
<br>
<input type="button" value="View MPR For This Location"
onClick="location.href='http://MyServer/MPR_Report/ViewReport.aspx?fn=12345'
">
</form>
</body>
</html>