HN-Community
[ASK]Getelements - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+---- Forum: Web Programing (https://hacker-newbie.org/forum-38.html)
+---- Thread: [ASK]Getelements (/thread-19200.html)



[ASK]Getelements - CopSLacS - 03-12-2014

Permisi nih gan ane mau tanya,kenapa yang script javascript yang ane buat kok ga bisa ya pas ane masukin di address barnya chrome.Ini scriptnya buat tahu nama file di tag id yang bernama "filename".Soalnya ketika ane coba yang keluar malah [object HTMLElement].
Ini scriptnya:
Code:
javascript:var x = document.getElementById('filename');javascript:window.prompt("URL", x);
Script ini mau ane gunakan buat IDWS,soalnya filenya ga pernah sesuai namanya.untuk contohnya ini linknya
http://files.indowebster.com/download/video/Harvest_Moon_Back_to_Nature_Bahasa_Indonesia_PSX_ISO