When I click on a URL with the link "javascript:$('#dialog-modal').dialog('open');" in Chrome and FF my Jquery dialog loads. In Internet explorer 8 the page source disappears and is replaced with "[object Object]" .. WTH?
Internet Explorer Incompatibility - page just shows "[object Object]" WTH?
2k views Asked by Chris At
2
There are 2 answers
0
mbokil
On
The problem is IE8 expects you to do something with the click event. The below code works and has been tested in Firefox, chrome, IE8. Notice you need the void(0) to make it work.
<a class="dialogBtn" href="javascript:$('#layer1').hide();void(0);" style="text-decoration:none;color:#FFF">OK</a>
Or you can use this syntax:
<a class="dialogBtn" href="javascript:void(0);" onclick="$('#layer1').hide();" style="text-decoration:none;color:#FFF">OK</a>
Related Questions in INTERNET-EXPLORER
- VBA, Internet Explorer and Javascript
- Inefficient driver.get() performance in Loops with IEDriver
- NEXT JS -unpecified error on ecternal calls
- Internet Explorer fails to launch via Selenium
- IE Mode Edge driver stuck on 'This is the initial start page for the WebDriver server' when running in Elevated Mode (Admin Mode) [Selenium]
- Can open new window in different browser?
- unable to get the right object to set the windowState
- Filters to apply for an application that can only run on IE compatibility
- How to accept popup message from Edge in IE mode Python - Selenium
- Does anyone know why i cannot see the source code of a website while in Internet Explorer mode in Microsoft Edge?
- Protected Mode settings are not the same for all zones (SELENIUM) (IE MODE IN EDGE)
- Browser Compatibility for WebTransport
- Internet Explorer don't POST
- Microsoft Edge API and IE Mode
- Close security screen alert Internet Explorer Pop-up using VBA and Windows API
Related Questions in INTERNET-EXPLORER-8
- How do I achieve a Windows 10 Installation using System32
- How can I hide the original website content if the internet isn't connected?
- how can i use Function.prototype.call instead of apply?
- Not able to update my browser from Internet Explorer-8
- How to get an Angular 10 application working in IE 8?
- Is there a simple way in javascript to test for "null or not an object" error in IE8
- Powershell: How to Automatically Populate the Fields of a "Windows Security" Prompt Window to Access a web Page
- How to upload file in IE8 to server
- jquery slide show able to run on IE8
- Solving compatibility issues running javascript reduce() method on IE8
- jquery javascript passing value to html page
- Internet Explorer 11: Print functionality creates blank pages
- How to create circle with timer on UI which support all IE browsers
- how can i convert table row and columns a scroll table at ie8?
- Try to prevent reload page when hit enter in input type text in old version of Internet Explorer
Related Questions in CROSS-BROWSER
- Trouble Receiving Data from Front-End to Back-End Across Different Browsers and Devices
- cross- browser issues.how to handle in code level
- File Format: WebM encoded with the VP8 codec is not previewing in Safari browser
- How to align the last child of a table cell to the bottom of the cell?
- Refresh loses scrolling position on XML page rendered with XSLT
- Keep mobile browser top/bottom bars minimized unless user manually taps on them
- Polyfill for ReadableStream.from in browser?
- mix-blend-mode: color; is not working for <video> on iOS and Mac devices
- Capture files pending loading via JavaScript
- Polyfill for PerformanceObserver API to Implement Server Traffic Measurement
- AfterViewChecked behaves differently in Chrome and Firefox
- css grid with subgrid and overflow breaks on safari but works on all other browsers
- Arrow Rotation and Scroll Reset Issue on Mobile Browsers
- Iframe : Reload back and forward Navigation
- What causes gradient banding and how do you fix it?
Related Questions in IE8-COMPATIBILITY-MODE
- Filters to apply for an application that can only run on IE compatibility
- Redirecting from edge ie11 compatibility mode site
- Edge noframemerging alternatives
- Edge App in IE Mode - Hide Persistent Address Bar
- Overcome/ignore compatibility view IE11 for particular page/site
- Can internet explorer run two different application with different compatibility requirements in two different tabs
- How to run IE11 page in frame of IE8 website
- IE document mode is set to 7 when browsing to angular site
- Window 10 IE 11 Enterprise option not working for legacy Url
- How can i capture Shift + F8 in JQuery application?
- How to conditionally apply x-ua meta tag only to ie10 and below?
- Forcing IE's Compatibility Mode off
- IE8 - checkbox not changing state on first click
- nextElementSibling Polyfill gives error 'Element' is undefined
- Browser compatibility mode defaulting to IE5 in my web application
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In Internet Explodezor JQuery doesnt seem to work via hyperlinks. Therefore I encapsulated this inside a function and just called the function.
Edit: Seriously whyyy do I have to wait 2 days to accept my own answer....