Created
September 30, 2012 02:24
-
-
Save zhuzhuaicoding/3805673 to your computer and use it in GitHub Desktop.
create an iframe with name for compatitable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iframe; | |
try { | |
iframe = document.createElement('<iframe name="test">'); // for ie | |
} catch (ex) { | |
iframe = document.createElement('iframe');//for standard browser | |
} | |
iframe.name = 'test'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment