Get parameters from URL with JS or jQuery [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I've this type of URL:
https://example.com/page#param1|param2
How can I get param1 and param2 ?
Thanks.

Those are part of the hash if you are getting them from the current url.
_hash = window.location.hash.split("|")
console.log(_hash)

Related

About the implementation of the MTProtocol [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
source code: https://github.com/morethanwords/tweb
About the implementation of the MTProtocol
I checked the source code, but did not find the socket connection code. Is it implemented in wasm? I need help. Thanks.
i hope to get an answer

unable to add collection in firebase using react [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
Improve this question
FirebaseError: Expected type 'ya', but it was: a custom Ia object
my code:
enter image description here

How do I open a site with a different url in the menubar? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
I've been trying to open google.com with the url say, youtube.com
I have been trying to use iframes but they don't seem to work. Any help?

Delete number after slash in javascript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Hey lets say I have url like this:
http://google.com/1/2
How do I delete last number(after last slash character)? all numbers can vary in length.
var URL = "http://google.com/1/2";
var newUrl = URL.substring(0, URL.lastIndexOf('/'));
console.log(newUrl);

How do I use a var to access json object property [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
So here's a little test I'm doing to check if I'm grabbing all the thumbs from my object. Problem is projectName is coming up undefined. Whhhhaaa?
var projectName = $(this).attr("href");
console.log(worklist.work.projectName.thumbs.length);
If you need to access a property dynamically, use bracket-notation.
console.log(worklist.work[projectName].thumbs.length);
try
console.log(worklist.work[projectName].thumbs.length);

Categories

Resources