Jump to content

absorr

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by absorr

  1. Is there a way to get document elements of a different html file through JavaScript? I need to be able to get the title and the description (the description being se by meta tag).
  2. How do I add an attribute (like src="blah") into a tag created using createElement? It has to be in JS, and can not use innerHTML. Thanks!
  3. that worked thanks guys
  4. <!DOCTYPE html><html> <head> <title>Nova Skin Lite</title> <script type="text/javascript"> function steve() { document.getElementById('edit').innerHTML = '<iframe src=\"http://minecraft.novaskin.me/lite#http://www.minecraft.net/images/char.png\" width=\"100%\" height=\"800\">ERROR CODE: I ######ed up</iframe>'; } function userSkin() { var user = document.skin.user.value document.getElementById('edit').innerHTML = '<iframe src=\"http://minecraft.novaskin.me/lite#'user'\" width=\"100%\" height=\"800\">ERROR CODE: I ######ed up</iframe>'; } </script> </head> <body> <div id="edit"><iframe src="http://minecraft.novaskin.me/lite#http://www.minecraft.net/images/char.png" width="100%" height="90%">ERROR CODE: I ######ed up</iframe></div> <form name="skin"> Load User Skin: <input type="text" name="user" /> <input type="button" value="Submit" onClick="javascript:userSkin();" /> <input type="button" value="Steve (default)" onClick="javascript:steve();" /> </form> </body></html> When I click the button (either one) it does not work. In the chrome JS console it says "Uncaught ReferenceError: steve is not defined"
  5. I am making a Windows 8 app using Visual Basic. I'm using the VBScript forum because its pretty much the same thing but one is for web and I love W3Schools Forums. I need to write into an already existing .jar file. I know in Java this is done by unpacking adding and packing but the API methods for it is not in VB. How do I do it?Oh also would it be possible to do this using VBScript in a Windows 8 HTML/JS app?
×
×
  • Create New...