Using .slice (simple, probably preferred, method):
If it is always going to be "Welcome, name!", you could use .slice:
var text = document.getElementById("status").innerHTML.trim();
var myName = text.slice(9, -1);
// myName === "bob"
This works with other names too.
<div id="status">
Welcome, Jamen!
</div>
Would result in myName being "Jamen".
Using data-* attributes:
As RST elaborated, you could setup your HTML to make this a lot more simple, if it is yours.
<div id="status" data-name="Jamen">
Welcome, Jamen!
</div>
With:
var myName = document.getElementById("status").getAttribute("data-name");
Using data-binding libraries:
As a big alternative, you could consider a library that does data-binding. For instance, here is an example using VueJS:
<div id="status">
Welcome, {{name}}!
</div>
Then we can use:
var status = new Vue({
el: '#status',
data: { name: 'Jamen' }
});
// status.name === "Jamen"
Of course, this is probably more than necessary for just this question, since data-binding libraries do a lot more than let you access values in HTML, but it's just a thought if you're doing more beyond what you posted in this question.
.slice, if its always going to be "Welcome, name!".div-tag and grab it from there. Likedata-name=bobor something