close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


onclick blocked?

Thread began 11/30/2011 3:24 pm by Steve | Last modified 11/30/2011 4:20 pm by Steve | 980 views | 3 replies |


onclick blocked?

I have an onclick event that does the basic open new window event but it does not work in the CSS Menu environment. onMouseOver works in the same environment...

The function is present and I can not see why it would not work...

live page: branding.php


$WA_remoteRoot "/";
$WA_curURL strtolower((isset($_SERVER["PHP_SELF"]))?$_SERVER["PHP_SELF"]:"");
$assumedRoot $WA_remoteRoot;
if (
strpos($WA_curURL,strtolower($WA_localRoot)) === && (strlen($WA_localRoot) >= strlen($WA_remoteRoot) || strpos($WA_curURL,strtolower($WA_localRoot)) === 0)) {
$assumedRoot $WA_localRoot;
$WA_thisFile $_SERVER['PHP_SELF'];
if (
strpos(strtolower($WA_thisFile), strtolower($assumedRoot)) === 0) {
$WA_thisFile substr($WA_thisFilestrlen($assumedRoot));
else {
$WA_thisFile substr($WA_thisFile1);
$WA_ddsArray explode("/"$WA_thisFile);
$WA_dotDotSlash "";
for (
$n=0$n<sizeof($WA_ddsArray)-1$n++) {
$WA_dotDotSlash .= "../";

<ul class="level-0" id="cssmw">
  <li><a href="<?php echo($assumedRoot); ?>index.php">Home</a></li>
  <li class="parent"><a href="#">Our Phones</a>
    <ul class="level-1">
      <?php do { ?>
      <li><a href="<?php echo($assumedRoot); ?>product.php?prodId=<?php echo $row_rs_products['id']; ?>"><?php echo $row_rs_products['productname']; ?></a></li>
      <?php } while ($row_rs_products mysql_fetch_assoc($rs_products)); ?>
  <li><a href="#" onclick="MM_openBrWindow('fastTrac.php','RPF','width=662,height=668')">Rapid Product Selector</a></li>
  <li><a href="<?php echo($assumedRoot); ?>branding.php">Custom Branding</a></li>
  <li><a href="<?php echo($assumedRoot); ?>order.php">Order Phones</a></li>
  <li><a href="<?php echo($assumedRoot); ?>newsletter.php">Newsletter</a></li>
  <li><a href="<?php echo($assumedRoot); ?>fcc.php">FCC</a></li>
  <li><a href="<?php echo($assumedRoot); ?>dealerLogin.php">Dealer Login</a></li>
<script type="text/javascript">if(window.attachEvent) { window.attachEvent("onload", function() { cssmw.intializeMenu('cssmw',{select_current: 0, orientation: 1}); }); } else if(window.addEventListener) { window.addEventListener("load", function() { cssmw.intializeMenu('cssmw',{select_current: 0, orientation: 1}); }, true); }</script>
Sign in to reply to this post

Jason ByrnesWebAssist

testing you page in FireFox, the window opens fine, it is a problem in Chrome and Safari. These 2 browsers have built in popup blockers that will prevent the onClick event from firing the method.

see this post at stack overflow for more details:

Sign in to reply to this post


in menu.js I commented this line and now it works....
// aTags[a].onclick = this.a_click;

if (li) {

                                aTags[a].onfocus = this.a_focus;
                                aTags[a].onblur = this.a_blur;
                                // aTags[a].onclick = this.a_click;
                                // set up onkeypress events as well if orientation is known
                                if (this.orientation) {
                                    aTags[a].onkeypress = this.a_onkeypress;
                                    aTags[a].onkeyup = this.a_onkeyup;
Sign in to reply to this post


My tests were with FireFox (Mac) and EI8 (PC) neither worked but with the commented code it works fine now....

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...