![]() |
'test.html?url=hallo' mit Javascript??
Hi!
mein Problem ist, das ich eine HTML Seite dynamisch generieren muss. Mit PHP kann ich ja einfach die variabeln in der URL definieren aber wie mache ich das mit Javascript, das im Dokument dann hinterher 'hallo' steht?? thÄnxX fcg |
Re: 'test.html?url=hallo' mit Javascript??
Code:
window.location.search
![]()
Code:
test.html?url=hallo
if (window.location.search.substr(1, 4) == 'url=') { document.write(window.location.search.substr(6, window.location.search.length)); } oder ganz einfach:
Code:
test.html?hallo
document.write(window.location.search.substr(1, window.location.search.length)); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:41 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz